package com.itheima.redis.configure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author zero
 * @date 2020/6/12
 */

@ConfigurationProperties(prefix = "redis")
public class RedisProperties {

    private String localhost = "localhost";
    private Integer port = 6379;

    public String getLocalhost() {
        return localhost;
    }

    public void setLocalhost(String localhost) {
        this.localhost = localhost;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }
}
